package app

import (
	"github.com/gin-gonic/gin"
	"ruoyi-go/app/admin"
	api "ruoyi-go/app/admin/api/system"
	"ruoyi-go/app/html"
)

func Routers(e *gin.Engine) {
	e.GET("/index", api.IndexHandler)
	e.GET("/captchaImage", api.CaptchaImageHandler)
	// 登录
	e.POST("/login", api.LoginHandler)
	// 退出
	e.POST("/logout", api.LogoutHandler)

	/*system*/
	admin.Routers(e)

	/*html*/
	html.Routers(e)

}
